package com.example.myapp.bill;

public class Bill {
    private String name;
    private String date;
    private float amount;
    private boolean ifPaid;
    private long id;

    public Bill(String name, String date, float amount, boolean ifPaid) {
        this.name = name;
        this.date = date;
        this.amount = amount;
        this.ifPaid = ifPaid;
    }

    public Bill(int billId, String billName, String billDate, float billAmount, boolean ifPaid) {
        this.id = billId;
        this.name = billName;
        this.date = billDate;
        this.amount = billAmount;
        this.ifPaid = ifPaid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public float getAmount() {
        return amount;
    }

    public void setAmount(float value) {
        this.amount = value;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getId() {
        return id;
    }

    public boolean getIfPaid() {
        return ifPaid;
    }

    public void setIfPaid(boolean ifPaid) {
        this.ifPaid = ifPaid;
    }

    @Override
    public String toString() {
        return "Bill{" +
                "name='" + name + '\'' +
                ", date='" + date + '\'' +
                ", amount=" + amount +
                "}";
    }
}
